﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using WalkingTec.Mvvm.Core;
using System.Text.Json.Serialization;
using TyMES.Model;

namespace TyMES.Model.Record
{
    /// <summary>
    /// 生产数据记录
    /// </summary>
	[Table("ProduceDataRecord")]

    [Display(Name = "_Model.ProduceDataRecord")]
    public class ProduceDataRecord : BasePoco
    {
        [Display(Name = "_Model._ProduceDataRecord._SN")]
        [Comment("SN号")]
        [Required(ErrorMessage = "Validate.{0}required")]
        public string SN { get; set; }
        [Display(Name = "_Model._ProduceDataRecord._StationCode")]
        [Comment("工位编号")]
        [Required(ErrorMessage = "Validate.{0}required")]
        public string StationCode { get; set; }
        [Display(Name = "_Model._ProduceDataRecord._DataName")]
        [Comment("数据名称")]
        public string DataName { get; set; }
        [Display(Name = "_Model._ProduceDataRecord._Result")]
        [Comment("结果")]
        public string Result { get; set; }
        [Display(Name = "_Model._ProduceDataRecord._Data")]
        [Comment("数据")]
        public string Data { get; set; }
        [Display(Name = "_Model._ProduceDataRecord._SqlTime")]
        [Comment("上传服务器时间")]
        public string SqlTime { get; set; }
        [Display(Name = "_Model._ProduceDataRecord._SqlFlag")]
        [Comment("上传标识")]
        public bool? SqlFlag { get; set; }
        [Display(Name = "_Model._ProduceDataRecord._Actualsort")]
        [Comment("实际顺序")]
        [Range(0,999999999,ErrorMessage="Validate.{0}range{1}")]
        //[Required(ErrorMessage = "Validate.{0}required")]
        public int? Actualsort { get; set; }

	}

}
